package com.grgbanking.it.system.dao;

import java.io.Serializable;
import java.util.List;

import com.grgbanking.it.base.IBaseDao;
import com.grgbanking.it.system.entity.Role;



/**
 * 角色
 * 
 * IRoleDao
 * 
 * @author 潘广伟
 * @Email p_3er@qq.com
 * @Date 2014-12-17 下午4:27:58
 * 
 * @version 1.0.0
 *
 */
public interface IRoleDao<T, PK extends Serializable> extends IBaseDao<T, PK >{
	/**
	 * 获取用户角色
	 * getRolesByUsername
	 * 
	 * @param username
	 * @return
	 * @throws Exception 
	 * @exception 
	 * @since  1.0.0
	 */
	public List<Role> findByUser(String username) throws Exception;
}